package com.graduation.vaccine.vo;

import com.graduation.vaccine.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author:ZhaoJunYao
 * @FileName:
 * @Date:Created in  2022/4/11 9:50
 * @Version:
 * @Description:注册信息
 */
@Data
public class RegisterVo {

    /**
     * 注册手机号
     */
    @NotNull
    @IsMobile(required = true,message = "手机号码格式错误")
    private String userPhone;

    /**
     * 密码
     */
    @NotNull
    @Length(min = 6)
    private String password;

    /**
     * 邮箱
     */
    private String email;

}
